package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the EPLAN_DETAIL database table.
 * 
 */
@Entity
@Table(name="EPLAN_DETAIL")
@NamedQuery(name="EplanDetail.findAll", query="SELECT e FROM EplanDetail e")
public class EplanDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue=1, allocationSize=1, name="EDETAIL_ID_GENERATOR", sequenceName="SEQ2")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="EDETAIL_ID_GENERATOR")
	@Column(name="EDETAIL_ID")
	private long edetailId;

	@Column(name="EDETAIL_NAME3")
	private String edetailName3;

	@Column(name="EDETAIL_NUM")
	private BigDecimal edetailNum;

	@Column(name="EDETAIL_STATUS")
	private String edetailStatus;

	@Column(name="EDETAIL_TYPE")
	private String edetailType;

	@Column(name="EDETAIL_UNIT")
	private String edetailUnit;

	//bi-directional many-to-one association to EquipPlan
	@ManyToOne
	@JoinColumn(name="EPLAN_ID")
	private EquipPlan equipPlan;

	public EplanDetail() {
	}

	public long getEdetailId() {
		return this.edetailId;
	}

	public void setEdetailId(long edetailId) {
		this.edetailId = edetailId;
	}

	public String getEdetailName3() {
		return this.edetailName3;
	}

	public void setEdetailName3(String edetailName3) {
		this.edetailName3 = edetailName3;
	}

	public BigDecimal getEdetailNum() {
		return this.edetailNum;
	}

	public void setEdetailNum(BigDecimal edetailNum) {
		this.edetailNum = edetailNum;
	}

	public String getEdetailStatus() {
		return this.edetailStatus;
	}

	public void setEdetailStatus(String edetailStatus) {
		this.edetailStatus = edetailStatus;
	}

	public String getEdetailType() {
		return this.edetailType;
	}

	public void setEdetailType(String edetailType) {
		this.edetailType = edetailType;
	}

	public String getEdetailUnit() {
		return this.edetailUnit;
	}

	public void setEdetailUnit(String edetailUnit) {
		this.edetailUnit = edetailUnit;
	}

	public EquipPlan getEquipPlan() {
		return this.equipPlan;
	}

	public void setEquipPlan(EquipPlan equipPlan) {
		this.equipPlan = equipPlan;
	}

}